home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / source / objects / scout_commodity.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-09-17  |  2.9 KB  |  98 lines

  1. /**
  2.  * Scout - The Amiga System Monitor
  3.  *
  4.  *------------------------------------------------------------------
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * You must not use this source code to gain profit of any kind!
  21.  *
  22.  *------------------------------------------------------------------
  23.  *
  24.  * @author Andreas Gelhausen
  25.  * @author Richard Körber <rkoerber@gmx.de>
  26.  */
  27.  
  28.  
  29. /* Prototypes for functions defined in
  30. objects/scout_commodity.c
  31.  */
  32.  
  33. struct PrivateCxObj {
  34.    struct Node     mco_Node;
  35.    UBYTE           mco_Flags;
  36.    UBYTE           mco_dummy1;
  37.    struct MinList  mco_SubList;
  38.    APTR            mco_dummy2;
  39.    char            mco_Name[CBD_NAMELEN];
  40.    char            mco_Title[CBD_TITLELEN];
  41.    char            mco_Descr[CBD_DESCRLEN];
  42.    struct Task *   mco_Task;
  43.    struct MsgPort *mco_Port;
  44.    ULONG           mco_dummy3;
  45.    WORD            mco_dummy4;
  46. };
  47.  
  48. struct CxEntry {
  49.     struct MinNode cxe_Node;
  50.     struct PrivateCxObj *cxe_Addr;
  51.     UBYTE cxe_Address[ADDRESS_LENGTH];
  52.     UBYTE cxe_Type[NODETYPE_LENGTH];
  53.     UBYTE cxe_Pri[ADDRESS_LENGTH];
  54.     UBYTE cxe_Name[CBD_NAMELEN];
  55.     UBYTE cxe_Title[CBD_TITLELEN];
  56.     UBYTE cxe_Description[CBD_DESCRLEN];
  57.     UBYTE cxe_Task[ADDRESS_LENGTH];
  58.     UBYTE cxe_Port[ADDRESS_LENGTH];
  59.     UBYTE cxe_Unique[NUMBER_LENGTH];
  60.     UBYTE cxe_FlagsInt;
  61.     UBYTE cxe_Flags[NUMBER_LENGTH];
  62. };
  63.  
  64. struct CxSubEntry {
  65.     struct MinNode cxse_Node;
  66.     UBYTE cxse_Address[ADDRESS_LENGTH];
  67.     UBYTE cxse_Type[NODETYPE_LENGTH];
  68.     UBYTE cxse_Pri[NUMBER_LENGTH];
  69. };
  70.  
  71. void PrintCx( char * );
  72.  
  73. void SendCxList(void);
  74.  
  75. #define CommoditiesWindowObject              NewObject(CommoditiesWinClass->mcc_Class, NULL
  76.  
  77. struct CommoditiesWinData {
  78.     UBYTE cwd_Title[WINDOW_TITLE_LENGTH];
  79.     APTR cwd_CxList;
  80.     APTR cwd_CxText;
  81.     APTR cwd_CxCount;
  82.     APTR cwd_AppearButton;
  83.     APTR cwd_DisappearButton;
  84.     APTR cwd_EnableButton;
  85.     APTR cwd_DisableButton;
  86.     APTR cwd_KillButton;
  87.     APTR cwd_ListChgButton;
  88.     APTR cwd_UniqueButton;
  89.     APTR cwd_RemoveButton;
  90.     APTR cwd_PriorityButton;
  91.     APTR cwd_MoreButton;
  92. };
  93.  
  94. ULONG __asm __saveds CommoditiesWinDispatcher( register __a0 struct IClass *cl,
  95.                                                register __a2 Object *obj,
  96.                                                register __a1 Msg msg );
  97.  
  98.